package com.lzy.shops.mapper;

import com.lzy.shops.bean.Area;
import com.lzy.shops.bean.UserAddress;
import com.lzy.shops.bean.UserAndAddress;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserAndAddressMapper {
    public UserAndAddress findByUser(@Param("userId") Integer userId,@Param("start") Integer start,@Param("end") Integer end);
    public Integer findByUserCount(Integer userId);
    public Integer insertUserAndAddress(@Param("addressId") Integer addressId,@Param("userId") Integer userId);
    public Integer insertUserAddress(UserAddress userAddress);
    public Integer delUserAndAddress(@Param("addressId") Integer addressId,@Param("userId") Integer userId);
    public Integer delUserAddress(Integer addressId);
}
